package com.auto.admin.service.impl;

import com.auto.admin.entity.ParamMapping;
import com.auto.admin.mapper.ParamMappingMapper;
import com.auto.admin.service.ParamMappingService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * @author liangshf
 * @Description: param_mapping映射 服务实现类
 * @date 2018-06-20
 */
@Service
public class ParamMappingServiceImpl extends ServiceImpl<ParamMappingMapper, ParamMapping> implements
	ParamMappingService {

	public List<ParamMapping> findByUrlId(Long urlId){
		QueryWrapper<ParamMapping> paramWrapper = new QueryWrapper<>();
		paramWrapper.eq("url_id", urlId);
		paramWrapper.eq("del", 0);
		return baseMapper.selectList(paramWrapper);
	}
}
